<template>
    <el-main>
        <el-main class="ep-body">
            <epl-top-bar :datas="{formData: form,tableData:tableData,panel: panel}" showPerson personType="PERSON_AAC031_1" psTagType="PERSON_AAB001_GROUP">
                <ep-button size="small" name="打印"></ep-button>
                <ep-button size="small" name="刷新"></ep-button>
            </epl-top-bar>
             <epl-userMessage dataType="person" idCount="2" :panel="panel" isCodeType >
                  <epl-personInsurance :panel="panel" isCodeType></epl-personInsurance>
            </epl-userMessage>
            <el-card class="ep-card">
                <ep-title>请输入变动信息</ep-title>
                <el-form :model="form" ref="form" :rules="rules">
                     <el-row :gutter="10">
                        <ep-select colspan="8" label="参保身份" name="aac066" :property="form.aac066" placeholder="请选择参保身份"
                                    p="R" codetype="AAC066" :datas="{formData: form,tableData:tableData,panel: panel}" isCodeType isChange></ep-select>
                        <ep-select colspan="8" label="参保子身份" name="bac066" :property="form.bac066" placeholder="请选择参保子身份"
                            p="R" codetype="BAC066" :datas="{formData: form,tableData:tableData,panel: panel}" isCodeType isChange></ep-select>
                        <ep-date colspan="8" label="变更日期" name="aae035" :property="form.aae035" placeholder="请选择变更日期" 
                                p="R" :datas="{formData: form,tableData:tableData,panel: panel}" type="date" format="yyyy-MM-dd" value-format="yyyyMMdd" rules="this.$localRules.DateCheck" ></ep-date>
                    </el-row>
                     <el-row :gutter="10">
                        <ep-select colspan="8" label="变动类型" name="aac050" :property="form.aac050"
                                    p="H" :datas="{formData: form,tableData:tableData,panel: panel}" codetype="AAC050" ></ep-select>
                        <ep-select colspan="8" label="变动原因" name="aae160" :property="form.aae160"
                                    p="H" codetype="AAE160" :datas="{formData: form,tableData:tableData,panel: panel}" ></ep-select>
                        <ep-select colspan="4" label="单位编码" name="aab001" :property="form.aab001"
                                    p="H"  :datas="{formData: form,tableData:tableData,panel: panel}" ></ep-select>
                         <ep-select colspan="4" label="人员编码" name="aac001" :property="form.aac001"
                                    p="H"  :datas="{formData: form,tableData:tableData,panel: panel}" ></ep-select>
                        <ep-input colspan="8" label="参保身份列表" name="aac066s" :property="form.aac066s" p="H" ></ep-input>
                        <ep-input colspan="8" label="参保子身份列表" name="bac066s" :property="form.bac066s" p="H" ></ep-input>
                
                     </el-row> 
                    <el-row :gutter="10">
                        <ep-textarea :rows="3" label="备注" name="aae013" :property="form.aae013"
                                p="E" :datas="{formData: form,tableData:tableData,panel: panel}"></ep-textarea>
                    </el-row>
                </el-form>
            </el-card>


            <el-card class="ep-card">
                <ep-title>增加险种</ep-title>
                 <el-row>
                     <ep-table :data="tableData" border style="width: 100%;" rowDbClick  >
                           <ep-table-column editor="checkbox" width="55" header="选择" ></ep-table-column>  
                          <ep-table-column  editor="select" codetype="AAE140"   name="aae140" header="险种类型"></ep-table-column>
                            <ep-table-column  editor="text"  edited name="aac040" header="申报工资" isChange></ep-table-column>
                            <ep-table-column  editor="text"  name="AAE180" header="缴费基数" isChange></ep-table-column>
                            <ep-table-column editor="select" codetype="AAZ289" edited  name="aaz289" header="费率档次"></ep-table-column>
                    </ep-table>
                </el-row>
                <el-row type="flex" justify="center">
                </el-row>
            </el-card>
            <el-card class="ep-card">
                <ep-title>减少险种</ep-title>
                 <el-row>
                     <ep-table :data="tableData2" border style="width: 100%;" rowDbClick  >
                           <ep-table-column editor="checkbox" width="55" header="选择" ></ep-table-column>  
                          <ep-table-column  editor="select" codetype="AAE140"   name="aae140" header="险种类型"></ep-table-column>
                            <ep-table-column  editor="text" edited  name="aac040" header="申报工资" isChange></ep-table-column>
                            <ep-table-column  editor="text"  name="AAE180" header="缴费基数" isChange></ep-table-column>
                            <ep-table-column editor="select" codetype="AAZ289" edited  name="aaz289" header="费率档次"></ep-table-column>
                    </ep-table>
                </el-row>
                <el-row type="flex" justify="center">
                        <ep-saveButton id="doSave" top="20" type="primary" bottom="20" @formValidate="formValidate" :validate="['form']"
                                       :datas="{formData: form,panel:panel,tableData:tableData,tableData2:tableData2 }" ref="save"  name="保存" ></ep-saveButton>
                </el-row>
            </el-card>  
        </el-main>
    </el-main>
</template>


<script src="../js/PsInsureIncreaseJS.js"></script>
